﻿using Factory.Framework;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace FactoryFrameworkTest
{
    
    
    /// <summary>
    ///This is a test class for EventFactoryTest and is intended
    ///to contain all EventFactoryTest Unit Tests
    ///</summary>
    [TestClass()]
    public class EventFactoryTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for SaveEventInXml
        ///</summary>
        [TestMethod()]
        [DeploymentItem("FactoryFramework.dll")]
        public void SaveEventInXmlTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            EventFactory_Accessor target = new EventFactory_Accessor(param0); // TODO: Initialize to an appropriate value
            EventType eventType = new EventType(); // TODO: Initialize to an appropriate value
            EventColor eventColor = new EventColor(); // TODO: Initialize to an appropriate value
            string eventDescription = string.Empty; // TODO: Initialize to an appropriate value
            string additionalInfo = string.Empty; // TODO: Initialize to an appropriate value
            string url = string.Empty; // TODO: Initialize to an appropriate value
            target.SaveEventInXml(eventType, eventColor, eventDescription, additionalInfo, url);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for SaveEventInText
        ///</summary>
        [TestMethod()]
        [DeploymentItem("FactoryFramework.dll")]
        public void SaveEventInTextTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            EventFactory_Accessor target = new EventFactory_Accessor(param0); // TODO: Initialize to an appropriate value
            EventType eventType = new EventType(); // TODO: Initialize to an appropriate value
            EventColor eventColor = new EventColor(); // TODO: Initialize to an appropriate value
            string eventDescription = string.Empty; // TODO: Initialize to an appropriate value
            string additionalInfo = string.Empty; // TODO: Initialize to an appropriate value
            string url = string.Empty; // TODO: Initialize to an appropriate value
            target.SaveEventInText(eventType, eventColor, eventDescription, additionalInfo, url);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for SaveEvent
        ///</summary>
        [TestMethod()]
        [DeploymentItem("FactoryFramework.dll")]
        public void SaveEventTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            EventFactory_Accessor target = new EventFactory_Accessor(param0); // TODO: Initialize to an appropriate value
            EventType eventType = new EventType(); // TODO: Initialize to an appropriate value
            EventColor eventColor = new EventColor(); // TODO: Initialize to an appropriate value
            string eventDescription = string.Empty; // TODO: Initialize to an appropriate value
            string additionalInfo = string.Empty; // TODO: Initialize to an appropriate value
            string url = string.Empty; // TODO: Initialize to an appropriate value
            target.SaveEvent(eventType, eventColor, eventDescription, additionalInfo, url);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for PrepareToSave
        ///</summary>
        [TestMethod()]
        [DeploymentItem("FactoryFramework.dll")]
        public void PrepareToSaveTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            EventFactory_Accessor target = new EventFactory_Accessor(param0); // TODO: Initialize to an appropriate value
            EventType eventType = new EventType(); // TODO: Initialize to an appropriate value
            EventColor eventColor = new EventColor(); // TODO: Initialize to an appropriate value
            string eventDescription = string.Empty; // TODO: Initialize to an appropriate value
            EventNotificationType eventNotificationType = new EventNotificationType(); // TODO: Initialize to an appropriate value
            string additionalInfo = string.Empty; // TODO: Initialize to an appropriate value
            target.PrepareToSave(eventType, eventColor, eventDescription, eventNotificationType, additionalInfo);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for NotifyByEmail
        ///</summary>
        [TestMethod()]
        [DeploymentItem("FactoryFramework.dll")]
        public void NotifyByEmailTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            EventFactory_Accessor target = new EventFactory_Accessor(param0); // TODO: Initialize to an appropriate value
            string emailFactoryConfigFilePath = string.Empty; // TODO: Initialize to an appropriate value
            string[] listOfToAddress = null; // TODO: Initialize to an appropriate value
            string emailSubject = string.Empty; // TODO: Initialize to an appropriate value
            string emailText = string.Empty; // TODO: Initialize to an appropriate value
            target.NotifyByEmail(emailFactoryConfigFilePath, listOfToAddress, emailSubject, emailText);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for LoadEventFactorySettings
        ///</summary>
        [TestMethod()]
        [DeploymentItem("FactoryFramework.dll")]
        public void LoadEventFactorySettingsTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            EventFactory_Accessor target = new EventFactory_Accessor(param0); // TODO: Initialize to an appropriate value
            target.LoadEventFactorySettings();
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AddEvent
        ///</summary>
        [TestMethod()]
        public void AddEventTest1()
        {
            string eventFactoryConfigPath = string.Empty; // TODO: Initialize to an appropriate value
            string emailFactoryConfigPath = string.Empty; // TODO: Initialize to an appropriate value
            EventFactory target = new EventFactory(eventFactoryConfigPath, emailFactoryConfigPath); // TODO: Initialize to an appropriate value
            EventType eventType = new EventType(); // TODO: Initialize to an appropriate value
            string eventDescription = string.Empty; // TODO: Initialize to an appropriate value
            EventNotificationType eventNotificationType = new EventNotificationType(); // TODO: Initialize to an appropriate value
            target.AddEvent(eventType, eventDescription, eventNotificationType);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AddEvent
        ///</summary>
        [TestMethod()]
        public void AddEventTest()
        {
            string eventFactoryConfigPath = string.Empty; // TODO: Initialize to an appropriate value
            string emailFactoryConfigPath = string.Empty; // TODO: Initialize to an appropriate value
            EventFactory target = new EventFactory(eventFactoryConfigPath, emailFactoryConfigPath); // TODO: Initialize to an appropriate value
            EventType eventType = new EventType(); // TODO: Initialize to an appropriate value
            EventColor eventColor = new EventColor(); // TODO: Initialize to an appropriate value
            string eventDescription = string.Empty; // TODO: Initialize to an appropriate value
            EventNotificationType eventNotificationType = new EventNotificationType(); // TODO: Initialize to an appropriate value
            string additionalInfo = string.Empty; // TODO: Initialize to an appropriate value
            target.AddEvent(eventType, eventColor, eventDescription, eventNotificationType, additionalInfo);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for EventFactory Constructor
        ///</summary>
        [TestMethod()]
        public void EventFactoryConstructorTest2()
        {
            string eventFactoryConfigPath = string.Empty; // TODO: Initialize to an appropriate value
            string emailFactoryConfigPath = string.Empty; // TODO: Initialize to an appropriate value
            EventFactory target = new EventFactory(eventFactoryConfigPath, emailFactoryConfigPath);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for EventFactory Constructor
        ///</summary>
        [TestMethod()]
        public void EventFactoryConstructorTest1()
        {
            string eventFactoryConfigPath = string.Empty; // TODO: Initialize to an appropriate value
            string emailFactoryConfigPath = string.Empty; // TODO: Initialize to an appropriate value
            EventType eventType = new EventType(); // TODO: Initialize to an appropriate value
            string eventDescription = string.Empty; // TODO: Initialize to an appropriate value
            EventNotificationType eventNotificationType = new EventNotificationType(); // TODO: Initialize to an appropriate value
            EventFactory target = new EventFactory(eventFactoryConfigPath, emailFactoryConfigPath, eventType, eventDescription, eventNotificationType);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for EventFactory Constructor
        ///</summary>
        [TestMethod()]
        public void EventFactoryConstructorTest()
        {
            string eventFactoryConfigPath = string.Empty; // TODO: Initialize to an appropriate value
            string emailFactoryConfigPath = string.Empty; // TODO: Initialize to an appropriate value
            EventType eventType = new EventType(); // TODO: Initialize to an appropriate value
            EventColor eventColor = new EventColor(); // TODO: Initialize to an appropriate value
            string eventDescription = string.Empty; // TODO: Initialize to an appropriate value
            EventNotificationType eventNotificationType = new EventNotificationType(); // TODO: Initialize to an appropriate value
            string additionalInfo = string.Empty; // TODO: Initialize to an appropriate value
            EventFactory target = new EventFactory(eventFactoryConfigPath, emailFactoryConfigPath, eventType, eventColor, eventDescription, eventNotificationType, additionalInfo);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }
    }
}
